<template >
    <div class="bigconn" >
        <!-- 头部 -->
        <div class="favorites-head">
            <van-nav-bar title="关注店铺" left-text="" :right-text="DutDelete" left-arrow @click-left="onClickLeft"
                @click-right="onClickRight" />
        </div>
            
        <van-tabs v-model:active="activeName" background="#eae9e5" line-color='#000' title-active-color="#c1ab96">
            <van-checkbox-group v-model="checked">
                <div class="favorites-goods">
                    <van-tab title="全部" name="a">
                   
                            <div class="aa" v-for="item in aaa" >
                        
                                    <van-checkbox v-show="ShowDelete" :name="item" />
                                <div class="StoreInformation" >
                                        <img src="https://img2.baidu.com/it/u=806791452,2765805606&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1665421200&t=9818f1da2857519915d2aea2ad42d289"  class="StoreInformation-img" alt="">
                                       <p class="StoreInformation-text" >11111111111111111</p>
                                       <div class="StoreInformation-UpDate" >
                                        <span>上新</span>
                                        <span>3</span>
                                       </div>
                                </div>
                  
                            </div>
                            
                   
                    </van-tab>
                    <van-tab title="降价中" name="b">
                        <div class="aa">
                        
                            <van-checkbox v-show="ShowDelete" name="1" />
                      
             
                    </div>
                    </van-tab>
                    
                </div>
            </van-checkbox-group>

        </van-tabs>

    </div>

</template>
<script setup lang="ts" >
import { ref } from 'vue'
const onClickLeft = () => history.back();
let aaa=ref([1,2,3,4,5])
const onClickRight = () => {
    if(DutDelete.value=="删除"){
        DutDelete.value="编辑"
        ShowDelete.value=false
        checked.value.forEach(i=>{
            aaa.value.splice(1,i)
        })

}else{
       DutDelete.value="删除"
        ShowDelete.value=true

    }
}
let DutDelete=ref("编辑")
let ShowDelete=ref(false)
const activeName = ref('a');

const checked = ref([]);

</script>
<style>
.favorites-head {
    width: 100%;
    background: #eae9e5;
    height: 10vw;
    position: fixed;
    top: 0;
    z-index: 10;

}
 .bigconn .van-tabs__wrap{
    width: 100%;
    height: 10vw;
    top: 10vw;
    position: fixed !important ;
    z-index: 10;
}
 
.bigconn .van-nav-bar__title {
    font-weight: 800 !important;
}
 
.bigconn .van-nav-bar__content {
    background: #eae9e5 !important;
    border: 0;
}
 
.bigconn .van-icon {
    color: #c5a28f !important;
}
 
.bigconn .van-nav-bar__text {
    color: #333333 !important;
    font-size: 1vw !important;
}

.favorites-goods {
    padding: 4vw;
    margin-top: 20vw;

}
 
.bigconn .van-card {
    border-radius: 2vw;
    border: 1px solid #dedede;
    box-shadow:.5vw 1vw 2vw .8vw rgb(236, 230, 230);
    background: #fff;
    flex: 1;
    margin-left: 2vw;
}

.aa {
    display: flex;
    margin-top: 2vw;

}
.StoreInformation{
    flex: 1;
    height: 18vw;
    border: 1px solid #dedede;
    margin-left: 2vw;
    box-shadow:.5vw 1vw 2vw .8vw rgb(236, 230, 230);
    

    display: flex;

}
.StoreInformation-img{
    width: 14vw;
    height: 14vw;
    margin: 2vw 1vw 2vw 1vw;
    box-sizing: border-box;
    border-radius: 50%;
}
.StoreInformation-text{
    margin-left: 3vw;
    flex: 6;
    line-height:18vw ;
}
.StoreInformation-UpDate{
    flex: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    color:#c7b3a0;
    text-align: center;
}

</style>